//
// Subject:			SM2603 - 2D Game Programming
// Assignment:		#PP3
// Student Name:	XIA Fei
// Student Number:	40040298 
// Date:			26/03/2012
//
// Assignment1.cpp - This is the skeletion file for Assignment 1
//
// requires static linkage to:  
// sdl.lib, sdlmain.lib
//
// requires dynamic linkage to: 
// sdl.dll
//

#pragma comment(lib, "SDL.lib")
#pragma comment(lib, "SDLmain.lib")
#pragma comment(lib, "SDL_image.lib")
#pragma comment(lib, "SDL_ttf.lib")

#include <iostream>
#include <SDL/SDL.h>
#include "GameIO.h"

using namespace std;

void initSDL();

int main(int argc, char *argv[])
{
	initSDL();

	GameIO* gameIO = new GameIO();

	gameIO->getInput();

	return 0;
}

void initSDL()
{
	if(SDL_Init(SDL_INIT_EVERYTHING) == -1)
	{
		cerr << "[Error]: " << SDL_GetError() << endl;
		exit(1);
	}

	atexit(SDL_Quit);
}